package me.zhengjie.modules.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import me.zhengjie.base.BaseEntity;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@TableName("companies")
public class Companies extends BaseEntity implements Serializable {

    @TableId(type = IdType.AUTO,value = "id")
    @NotNull(groups = BaseEntity.Update.class)
    private Long id;

    @ApiModelProperty(value = "社会信用代码")
    @TableField(value = "social_credit_code")
    private String socialCreditCode;

    @ApiModelProperty(value = "组织机构代码")
    @TableField(value = "organization_code")
    private String organizationCode;

    @ApiModelProperty(value = "详细名称")
    @TableField(value = "company_name")
    private String companyName;

    @ApiModelProperty(value = "行政区划代码")
    @TableField(value = "administrative_division_code")
    private String administrativeDivisionCode;

    @ApiModelProperty(value = "所属县市区")
    @TableField(value = "county_district")
    private String countyDistrict;

    @ApiModelProperty(value = "详细地址")
    @TableField(value = "address")
    private String address;

    @ApiModelProperty(value = "主要业务活动")
    @TableField(value = "main_business_activities")
    private String mainBusinessActivities;

    @ApiModelProperty(value = "行业代码")
    @TableField(value = "industry_code")
    private String industryCode;

    @ApiModelProperty(value = "统计局代码")
    @TableField(value = "bureau_statistics_code")
    private String bureauStatisticsCode;


}
